// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import vueStore from './store/vueX'

import iView from 'iview';
import 'iview/dist/styles/iview.css';
import './assets/icon/iconfont.css';
import './assets/icon/iconfont.js';
import { 
  Button,
  Table,
  TableColumn,
  Switch,
  Dialog,
  Radio,
  Checkbox,
  CheckboxButton,
  CheckboxGroup,
  MessageBox,
  Message
} from 'element-ui';

import VideoPlayer from 'vue-video-player'
require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')
import 'videojs-flash'
Vue.use(VideoPlayer)

Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Button);
Vue.use(Switch);
Vue.use(Dialog);
Vue.use(Radio);
Vue.use(Checkbox);
Vue.use(CheckboxButton);
Vue.use(CheckboxGroup);

Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;

Vue.use(iView);
Vue.prototype.$Notice.config({
    top: 100,
    duration: 5
  })
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store:vueStore,
  components: { App },
  template: '<App/>'
})
